// src/api/modules/auth.js
import request from '@/utils/request'

export const authAPI = {
  // 管理员登录
  login: (data) => request.post('/admin/login', data),
  
  // 退出登录
  logout: () => request.post('/admin/logout'),
  
  // 获取管理员信息
  getProfile: () => request.get('/admin/profile'),
  
  // 刷新 token
  refreshToken: () => request.post('/admin/refresh-token'),
  
  // 修改密码
  changePassword: (data) => request.put('/admin/password', data)
}